﻿namespace MultipleMonitorVideo.Views
{
    using System.Windows;

    public static class WindowExtensions
    {
        public static void ShowMaximized(this Window window)
        {
            window.Show();

            // Maximization must be set *after* window is shown,
            // so that window is located on the right screen
            window.WindowState = WindowState.Maximized;
        }
    }
}
